package cn.fsw.pethome.org.mapper;

import cn.fsw.pethome.base.mapper.BaseMapper;
import cn.fsw.pethome.org.domain.Employee;
import cn.fsw.pethome.system.domain.Menu;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EmployeeMapper extends BaseMapper<Employee> {

    List<String> selectBySn(Long id);

    void addRole(@Param("id")Long id,@Param("role_id")List<Long> role_id);

    void deleteRole(Long id);

    Employee selectByLoginId(Long id);

    List<Menu> selectMenuByEmployeeId(Long id);

    List<Employee> selectAByShopId(Long shopid);
}
